import aaf

output_aaf = 'resources/onlyone.aaf'

aaf_file = aaf.open(output_aaf, 'r')
print "[aaf_file]:" + str(aaf_file)
print

class_iid = aaf_file.class_iid
header = aaf_file.header
storage = aaf_file.storage
dictionary = aaf_file.dictionary

print "[aaf_file.class_iid]:" + str(class_iid)
print "[aaf_file.header]:" + str(header)
print "[aaf_file.storage]:" + str(storage)
print "[aaf_file.dictionary]:" + str(dictionary)
print

# TypeError: Header cannot be instantiated from Python
# self_header = aaf.storage.Header()
# TypeError: ContentStorage cannot be instantiated from Python
# self_storage = aaf.storage.ContentStorage()
# TypeError: Dictionary cannot be instantiated from Python
# self_dict = aaf.dictionary.Dictionary()

aaf_file.save("resources/aaf_create_rw.aaf")
aaf_file.close()